<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="contents-Type" contents="text/html; charset=utf-8" />
<title>{$xsite.title} - {$xsite.slogan}</title>
<meta name="description" content="{$xsite.description}" />
<meta name="keywords" content="{$xsite.keywords}" />
<link rel="shortcut icon" href="{:SITE_URL}/public/themes/blue/images/favicon.ico" />
<link href="__PUBLIC__/themes/blue/layout.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/themes/blue/blue/theme.css" id="themepoint" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.4-and-jquery-ui-core-1.7.2.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery-ui-1.7.2/dragable.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/thickbox/jquery.mousewheel.min.js" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/language/{$lang}/lang.js" ></script>
<script> var LANGUAGE_NAME = '{$lang}'; </script>
<script type="text/javascript" src="__PUBLIC__/js/tbox/tbox.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/public.js" ></script>
<script type="text/javascript" src="__PUBLIC__/js/jwidget_1.0.0.js" ></script>
</head><body>
<!--头部 begin-->
<div class="mini_header" id="themeheader">
  <div class="CC" style="height:32px;">
    <div class="R">
    <div class="min_lognT">
		<div class="lognT">
			<span class="userstatus"></span>
			<?php if( getLang()=='en' ): ?>

				<?php
				$channel	=	t($_GET['channel']);
				if( in_array($channel,array('enhome','enwiki','enask','engroup','enspace')) && APP_NAME.'/'.MODULE_NAME.'/'.ACTION_NAME == 'portal/Index/index'){
					echo '<a href="'.SITE_URL.'/'.substr($channel,2,10).'?l=zh-cn">中文</a>';
				}else{
				?>
					<a href="{$pre_url}<?php if(false==strpos(t($_SERVER['REQUEST_URI']),'?')){ echo '?l=zh-cn'; }else{ echo t($_SERVER['REQUEST_URI']).'&l=zh-cn';} ?>">中文</a>
				<?php
				}
				?>

			<else />
				<?php
				$channel	=	t($_GET['channel']);
				if( in_array($channel,array('home','wiki','ask','group','space')) && APP_NAME.'/'.MODULE_NAME.'/'.ACTION_NAME == 'portal/Index/index'){
					echo '<a href="'.SITE_URL.'/en'.$channel.'?l=en">English</a>';
				}else{
				?>
					<a href="<?php if(false==strpos(t($_SERVER['REQUEST_URI']),'?')){ echo '?l=en'; }else{ echo t($_SERVER['REQUEST_URI']).'&l=en';} ?>">English</a>
				<?php
				}
				?>
			<?php endif; ?>
		</div>
		<script type="text/javascript">$.getScript('{:U('home/Public/mini_header')}');</script>
        <div class="topskin" id="topskin" style="display:none;">
		   <div class="skin_f">{:L('change_theme')}</div>
		   <div class="sea_main_L"  rel="themelist" style="width:85px; margin-top:10px;">
			<span class="ash"><a <eq name="themesel" value="ash">class="nb"</eq> href="javascript:void(0)" onclick="changeTheme(this,'ash','#666666')"></a></span> 
			<span class="blue"><a <eq name="themesel" value="blue">class="nb"</eq> href="javascript:void(0)" onclick="changeTheme(this,'blue','#006699')"></a></span> 
			<span class="green"><a <eq name="themesel" value="green">class="nb"</eq> href="javascript:void(0)" onclick="changeTheme(this,'green','#076119')"></a></span> 
			<span class="orange"><a <eq name="themesel" value="orange">class="nb"</eq> href="javascript:void(0)" onclick="changeTheme(this,'orange','#D64508')"></a></span> 
			<span class="red"><a <eq name="themesel" value="red">class="nb"</eq> href="javascript:void(0)" onclick="changeTheme(this,'red','#990000')"></a></span>
		   </div>
        </div>
     </div>
     </div>
    <div class="logo" style="height:32px; width:89px;"><a href="{:U('home')}"><img id="logo_image" src="__PUBLIC__/themes/blue/blue/s_logo.jpg" /></a> </div>
    <div class="mini_nav">
      <a href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>home">{:L('base_index')}</a>
       <a href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>ask">{:L('base_ask')}</a>
        <a href="{:U('bbs/Index/all')}">{:L('base_bbs')}</a>
        <a href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>group">{:L('base_group')}</a>
         <a href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>space">{:L('base_space')}</a>
         <a href="__ROOT__/<?php if( getLang()=='en' ){ echo 'en';} ?>wiki">{:L('base_wiki')}</a>
       <a href="{:U('document')}">{:L('base_knowledge')}</a>
    </div>
  </div>
</div>
<!--头部 end-->
<script type="text/javascript">
function changeTheme(o,type,color){
	$('#themeheader').css('background-color',color);
	$('#themepoint').attr('href',"__PUBLIC__/themes/blue/"+type+"/theme.css");
	$('#logo_image').attr('src',"__PUBLIC__/themes/blue/"+type+"/s_logo.jpg");
	var date = new Date();
	var ms = 365*24*3600*1000;
	date.setTime(date.getTime() + ms);
	document.cookie = 'TS_theme='+escape(type)+';path=/;domain={:C("COOKIE_DOMAIN")};expires='+date.toGMTString();
	$.each($("div[rel='themelist'] a"),function(i,n){
		$(this).removeAttr('class');
	});
	$(o).attr('class','nb');
	$('#topskin').hide();
	$('#showTheme').attr('class',''); 
}
</script>
<!--搜索 end-->